[%if count($array) > 0%]
[%forlist from=$array key=list%]
<div class="infolist" title="[%$array[list].templatename%] - [%$array[list].templatecode%]">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="6%">[%$array[list].tmid%]</td>
			<td width="6%">[%$array[list].lng%]</td>
			<td width="21%">[%$array[list].templatename%]</td>
			<td width="22%">[%$array[list].templatecode%]</td>
			<td width="10%">[%$array[list].typeclass%]</td>
			<td width="10%">[%$array[list].fileclass%]</td>
			<td width="7%" id="infotype">
				<table>
					<tr>
						<td>[%if $array[list].dirfile==1%]<span class="select_ok"></span>[%else%]<span class="select_no"></span>[%/if%]</td>
					</tr>
				</table>
			</td>
			<td width="18%" id="infotype">
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
						[%if @this->powercheck(197,217)==true %]
						<td>
							<a class="setedit" onclick="javascript:parent.onbotton('[%$ST.templatemain_edit_title%]','index.php?archive=templatemain&action=templateedit&tmid=[%$array[list].tmid%]&type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'tempfileedit[%$array[list].tmid%]',self.frameElement.getAttribute('name'));" id="tempfileedit[%$array[list].tmid%]" href="#body" title="[%$array[list].templatename%][%$ST.templatemain_edit_title%]" hidefocus="true">[%$ST.setedit_botton%]</a>
						</td>
						[%/if%]
						[%if @this->powercheck(197,218)==true %]
						<td class="padding-left3">
							<a class="setedit" onclick="javascript:parent.onbotton('[%$ST.templatemain_copy_title%]','index.php?archive=templatemain&action=templateedit&tmid=[%$array[list].tmid%]&type=copy&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'tempfilecopy[%$array[list].tmid%]',self.frameElement.getAttribute('name'));" id="tempfilecopy[%$array[list].tmid%]" href="#body" title="[%$array[list].templatename%][%$ST.templatemain_copy_title%]" hidefocus="true">[%$ST.setcopy_botton%]</a>
						</td>
						[%/if%]
						[%if @this->powercheck(197,219)==true && $array[list].lockin==0%]
						<td class="padding-left3"><a class="setedit" onclick="javascript:submiturl('index.php?archive=templatemain&action=del&tmid=[%$array[list].tmid%]&lng=[%$array[list].lng%]&templatecode=[%$array[list].templatecode%]&typeclass=[%$array[list].typeclass%]&freshid='+Math.random(),'index.php?archive=management&action=load','[%$ST.run_ok%]','[%$ST.run_no%]',true,'[%$ST.templatemain_del_log_mess%]','selectform','selectall','check_all');" href="#body" title="[%$ST.setdel_botton%]" hidefocus="true">[%$ST.setdel_botton%]</a></td>
						[%/if%]
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>
[%/forlist%]
[%else%]
<div class="infolist">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td align="center">[%$ST.list_nothing_title%]</td>
		</tr>
	</table>
</div>
[%/if%]